package com.apps.ubc.cc;

import java.io.IOException;
import java.util.Calendar;
import java.util.TimeZone;

import javax.servlet.http.*;

import com.apps.datastore.NoSignupDatastore;
import com.apps.datastore.dao.UniqueCourseObject;
import com.apps.outgoing.EmailNotifier;
import com.apps.services.UBCSectionDetailService;
import com.apps.utils.SMSUtils;

public class VerifyNoSignUpServlet extends HttpServlet {
	

	public void doGet(HttpServletRequest req, HttpServletResponse resp)
			throws IOException {
		String key = req.getParameter("key");
		boolean verify = NoSignupDatastore.verify(key);
			try {
				if (verify) 
					resp.sendRedirect("/nsverify.jsp?success=true");
				else
					resp.sendRedirect("/nsverify.jsp?success=false");
			} catch (IOException e) {
				e.printStackTrace();
			}
		
	}

}
